package org.duiduo.dao;

import org.duiduo.pojo.User;
import org.springframework.stereotype.Component;

@Component
public class UserDao {

    public User findUserById(Integer id) {
        if (id > 10) {
            return null;
        }
        return new User(id, "user-" + id);
    }

}
